<?php
if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])){
	header($_SERVER['HTTP_HOST']);
	exit();
}
?>
<h2><?php _e('Flickr Params', 'photoxhibit'); ?></h2>
<table width="100%" cellpadding="3" cellspacing="3" border="0">
	<tr>
		<td width="18%"><?php _e('Flickr Userid', 'photoxhibit'); ?></td>
		<td width="235"><input type="text" size="30" value="<?php echo $px_controller->vars['flickr_user_id'];?>" name="flickr_user_id" id="flickr_user_id"/></td>
		<td><?php _e('The userid for the Flickr account you want to pull from; you can enter multiple USERIDes but they must be separated by a comma. (eg: userid#1, userid#2)', 'photoxhibit'); ?></td>
	</tr>
	<tr>
		<td width="18%"><?php _e('Photoset ID', 'photoxhibit'); ?></td>
		<td width="235"><input type="text" size="30" value="<?php echo $px_controller->vars['flickr_photoset_id'];?>" name="flickr_photoset_id" id="flickr_photoset_id"/></td>
		<td><?php _e('If there are certain sets you want to pull from mutliple times, post those ids here separated by a comma.', 'photoxhibit'); ?></td>
	</tr>
	<?php //if(1==1): ?>
	
	<tr>
		<td colspan="2"><?php _e('PhotoXhibit has not been authenicated with Flickr to use the more advanced options, please go through the steps to do so');?></td>
	</tr>
	<tr>
		<td><?php _e('Step 1:');?></td>
		<td>
			<form>
					<input type="button" value="Authenticate" onclick="window.open('<?php //echo $this->getAuthUrl($frob,'delete'); ?>')" style="background: url( images/fade-butt.png ); border: 3px double #999; border-left-color: #ccc; border-top-color: #ccc; color: #333; padding: 0.25em; font-size: 1.5em;" />
			</form>
		</td>
	</tr>
	<tr>
		<td><?php _e('Step 2:');?></td>
		<td>
			<?php echo $phpFlickr->auth_getFrob();?>
		</td>
	</tr>
	
	<?php //else: ?>
	
	<?php //endif; ?>
</table>